﻿using Lhz.Sc.Entity.Database;
using System.Linq;

namespace Lhz.Sc.Business
{
    public static class ApplicationQueryExpansion
    {
        public static IQueryable<Application> QueryByNo(this IQueryable<Application> query, string no)
        {
            if (!string.IsNullOrWhiteSpace(no))
            {
                query = query.Where(r => r.No == no);
            }
            return query;
        }
    }
}
